package com.konke.sdslibrary.net;

import com.konke.sdslibrary.net.request.BindInfoRequest;
import com.konke.sdslibrary.net.request.RegisterDeviceReq;
import com.konke.sdslibrary.net.request.UpdatePushTokenReq;
import com.konke.sdslibrary.net.response.BindQrCodeResp;
import com.konke.sdslibrary.net.response.CCUBindInfo;
import com.zsj.comminlibrary.util.GetDeviceInfoResp;
import com.konke.sdslibrary.net.response.RegisterDeviceResp;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface ICloud {
    String BASE_URL = "https://api.shomec.hijaytech.com:4431";


    @POST("/1.0/products/2/devices")
    Call<RegisterDeviceResp> registerDevice(@Header("product_admin_id") String adminId, @Header("product_admin_token") String adminToken,
                                            @Body RegisterDeviceReq req);

    @GET("/1.0/devices/{dev_id}/bind_qr_code")
    Call<BindQrCodeResp> bindQrCode(@Header("sds_dev_id") String adminId, @Header("sds_dev_token") String adminToken,
                                    @Path("dev_id") String devId);

    @GET("/1.0/devices/{dev_id}")
    Call<GetDeviceInfoResp> getDeviceInfo(@Header("sds_dev_id") String adminId, @Header("sds_dev_token") String adminToken,
                                          @Path("dev_id") String devId);

    @POST("/1.0/devices/{dev_id}/dev_push_token")
    Call<Void> updatePushToken(@Header("sds_dev_id") String adminId, @Header("sds_dev_token") String adminToken,
                               @Path("dev_id") String devId, @Body UpdatePushTokenReq req);

    @POST("/1.0/users/U_047f3328-072c-4063-a3b9-0c63ac658a26/dev_bind_info")
    Call<CCUBindInfo> getCCUBindInfo(@Body BindInfoRequest request);


}

